<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>多个选择器</title>
    <script src="../../js/jquery.1.8.3.min.js"></script>
    <script>
        $(function () {
           var node = $("div,.myclass,span");
            for (var i = 0; i < node.length ; i++) {
                console.log("选中的元素" + node[i].innerText);
            }
        })
    </script>
</head>
<body>
    <div>div</div>
    <p class="myclass" >p class="myclass"</p>
    <span>span</span>
    <p class="nomyclass">p class="nomyclass"</p>
</body>
</html>